* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #000;
    overflow: hidden;
    font-family: 'Arial', sans-serif;
}

#game-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
}

canvas {
    max-width: 100%;
    max-height: 100%;
}

/* 加载屏样式 */
.loading-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    z-index: 100;
}

.loading-bar-container {
    width: 300px;
    height: 30px;
    border: 2px solid #fff;
    border-radius: 15px;
    margin-top: 20px;
    overflow: hidden;
}

.loading-bar {
    height: 100%;
    background-color: #4a8;
    width: 0%;
    transition: width 0.3s ease-in-out;
}